<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cadastro de Profissionais</title>
</head>

<body marginwidth="100px">
<div id="tudo" align="left">

<f:view>  
  <h:form>
  <fieldset>
  <legend>Cadastro de Profissionais</legend>
    <h:panelGrid columns="2">
    
     <h:outputLabel value="Nome:" for="nome"/>
     <h:inputText id="nome" label="Nome" value="#{profissonalBean.nome}" required="true"/>
     <h:outputLabel value="Email:" for="email"/>
     <h:inputText id="email" label="Email" value="#{profissonalBean.email}" required="true"/>
     <h:outputLabel value="Telefone:" for="telefone"/>
     <h:inputText id="telefone" label="Telefone" value="#{profissonalBean.telefone}" required="true"/>
     <h:outputLabel value="Endereco:" for="endereco"/>
     <h:inputText id="endereco" label="Endereco" value="#{profissonalBean.endereco}" required="true"/>
     <h:outputLabel value="Funcao:" for="funcao"/>
     <h:inputText id="funcao" label="Funcao" value="#{profissonalBean.funcao}" required="true"/>
     <h:outputLabel value="Carga Horaria:" for="cargaHoraria"/>
     <h:inputText id="cargaHoraria" label="CargaHoraria" value="#{profissonalBean.cargaHoraria}" required="true"/>
     <h:outputLabel value="Nascimento:" for="nascimento"/>
     <h:inputText id="nascimento" label="Nascimento" value="#{profissonalBean.nascimento}" required="true"/>
     <h:outputLabel value="Usuario:" for="usuario"/>
     <h:inputText id="usuario" label="Usuario" value="#{profissonalBean.usuario}" required="true"/>
     <h:outputLabel value="Senha:" for="senha"/>
     <h:inputText id="senha" label="Senha" value="#{profissonalBean.senha}" required="true"/>
     
     <h:commandButton action="#{profissonalBean.salvar}" value="Salvar"/>
    </h:panelGrid>
   </fieldset>
   </h:form>
</f:view>
<hr/>
</div>
</body>
</html>